package com.ahy231.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.*;
import lombok.*;

import java.util.Date;

/**
 * @author ahy231
 * @date 2021/8/5 13:45
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("交易信息")
public class TransactionInfo {

    @ApiModelProperty("交易 id")
    private String transactionId;

    @ApiModelProperty("交易名称")
    private String name;

    @ApiModelProperty("交易内容")
    private String content;

    @ApiModelProperty("发布时使用的角色")
    private String role;

    @ApiModelProperty("商家")
    private String belong;

    @ApiModelProperty("商家id")
    private String belongId;

    @ApiModelProperty("客户")
    private String username;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty("交易接受时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date acceptTime;

    @ApiModelProperty("交易状态（0/未发布、1/待接单、2/取消、3/接受、4/执行、5/验收、6/结束）")
    private Integer status;

    @ApiModelProperty("价格")
    private String price;
}
